package cn.kgc.mybatis.dao.impl;

import cn.kgc.mybatis.dao.StudentDao;
import cn.kgc.mybatis.entity.Student;

import java.util.Arrays;
import java.util.List;

/**
 * @author: 课工场
 * @since 2023/9/22
 */
public class StudentDaoImpl  implements StudentDao {
    @Override
    public List<Student> getList() {

        // 使用jdbc实现数据 查询
        Student student = new Student();
        student.setId(1);
        student.setAge(20);
        student.setStudentName("tom");
        student.setStudentNo("20230922");
        student.setScore(90.0);

        List<Student> students = Arrays.asList(student, student, student);

        return students;
    }
}
